package material.adapterAndFacade.iterenum;

import java.util.Arrays;
import java.util.Iterator;
import java.util.Vector;

public class EnumerationIteratorTestDrive {
    public static void main(String[] args) {
        Integer[] list = new Integer[]{1, 2, 3, 4, 5};
        Vector<Integer> v = new Vector<Integer>(Arrays.asList(list));
        Iterator<?> iterator = new EnumeratorIterator(v.elements());
        while (iterator.hasNext()) {
            System.out.print(iterator.next());
            System.out.print("  ");
        }

    }
}
